package com.koocloud.electroplatemanage.utils;

import cn.hutool.db.Db;
import cn.hutool.db.Entity;

import java.sql.SQLException;

/**
 * @program: electroplatemanage
 * @description: 测试数据库工具
 * @author: zww
 * @create: 2020-10-09 18:09
 */
public class testdbutils {
    public static void main(String[] args) throws SQLException {
        for (int i = 100; i <= 255; i++) {
            Db.use().insert(
                    Entity.create("bt_incomepartjudgefield")
                            .set("field_code", "F"+String.valueOf(i))
                            .set("field_name", "自定义项"+String.valueOf(i))
                            .set("enable_flag", "0")
                            .set("order_id", i)
                            .set("formula", "")
            );
        }
    }
}